package org.moonshiner.ctci.c1.q1;

public class StringAnalyzer {

	public boolean isUniqueChars(String string){
		
		if(string.length() > 256){
			return false;
		}
		
		boolean[] charSet = new boolean[256];
		
		for(int i = 0; i < string.length(); i++){
			int j = string.charAt(i);
			if(charSet[j]){
				return false;
			}
			charSet[j] = true;
		}
	
		return true;
	}
		
}
